<!doctype html>
<html>
<head>
<include file="public:head" />
<link rel=stylesheet type=text/css href="/static/taoyouhui/itaoke/css/good.css"/>
</head>
<body>
<include file="public:header" />

<div class="jiu-nav-main">
<div class="jiu-nav w1100">
<div class="nav-item fl">
<div class="item-list">
<ul>
<li><a rel="nofollow" href="{:C('itk_site_url')}">全部</a></li>
				<volist name="cate_data" id="bcate">	
				<if condition="$bcate['spid'] eq 0">
				<li><a <if condition="($cid eq $bcate['id']) OR ($cinfo['pid'] eq $bcate['id'])OR ($cinfo['spid'] eq $bcate['id'])">class="active"</if> href="{:U('index/cate', array('cid'=>$bcate['id']))}" title="{$bcate.name}">{$bcate.name}</a></li>	
				</if>
				</volist>
</ul>
</div>
</div>
<div class="nav-other fl">
<ul>
				<li><a href="{:U('xinpin/index')}" ><i class="today"></i><span>今日新品</span></a></li>

</ul>
</div>
<div class="n_h">
			<a href="{:U('index/cate',array('cid'=>$cid,'sort'=>'default'))}"  class=" <if condition="$index_info['sort'] eq 'default'"> active </if> ">默认</a>
			<a href="{:U('index/cate',array('cid'=>$cid,'sort'=>'new'))}" class=" <if condition="$index_info['sort'] eq 'new'"> active </if> ">最新</a>
			<a href="{:U('index/cate',array('cid'=>$cid,'sort'=>'hot'))}" class=" <if condition="$index_info['sort'] eq 'hot'"> active </if> ">最热</a></div>
</div>
</div>
</div>

<script type="text/javascript">
$(function() {
    var $navFun = function() {
        var st = $(document).scrollTop(), 
            headh = $("div.header").height()+$("div#toolbar").height(); 
            $nav_classify = $("div.jiu-nav-main");
	    $nav_classifysub = $("div.jiu-nav-main-2");

        if(st > headh){
            $nav_classify.addClass("fixed");
	    $nav_classifysub.addClass("fixedsub");
        } else {
            $nav_classify.removeClass("fixed");
	    $nav_classifysub.removeClass("fixedsub");
        }
    };

    var F_nav_scroll = function () {
        if(navigator.userAgent.indexOf('iPad') > -1){
            return false;
        }      
        if (!window.XMLHttpRequest) {
           return;          
        }else{
            //默认执行一次
            $navFun();
            $(window).bind("scroll", $navFun);
        }
    }
    F_nav_scroll();

});
</script>
<include file="public:itemlist" />
<include file="public:footer" />
</body>
</html>